<?php

$listid		= gpc_getStringArray("listid");
$liststatus	= gpc_getStringArray("liststatus");
$listorder	= gpc_getStringArray("listorder");
$modunlename	= gpc_getStringPost("modunlename");
$id			= gpc_getIntPost("id");


$countlist = count($listid);

for ($i = 0; $i < $countlist; $i ++)
{
    $sql_update = "UPDATE  tblvideo SET
    		  iStatus	 = '$liststatus[$i]',
    		  iOrder   ='$listorder[$i]'
    		  WHERE  iId = $listid[$i]";

    $dbsql->query($sql_update);
}

$cActions = " Update Status  $module";
Insert_Tracking($cActions);

page_transfer("Update Content Status Success !",$pagetr);

exit();

?>
